﻿@model MvcCmsProjectTracker.ViewModels.ViewModelBase
@if (Model.UsersProjects != null)
{
    if (Request.IsAuthenticated)
    { 
    <div id="activeproject" style="width: 100%; text-align: right">
        @using (Html.BeginForm())
        { <b>Active Project:</b>
            @Html.DropDownListFor(model => model.ActiveProjectID, new SelectList(Model.UsersProjects, "ProjectID", "Name", Model.ActiveProjectID), new { id = "projectID", onchange = "this.form.submit();" })
        }
    </div>
    }
}
